package com.eshore.norm.pattern.decorator;

/**
 * 快餐类  Component（主体，被装饰对象）：增加功能时的核心角色，定义了接口（API）
 *
 * @author: v-chenjl62
 * @date: 2024/2/5 14:43
 */
public abstract class FastFood {
    //价格
    private float price;

    //描述
    private String desc;

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public FastFood(){}

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public abstract float cost();
}
